#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

#include <stdio.h>

int main2()
{
	int side[3] = { 0 };
	int max = 0;
	int min = 0;
	int dividend = 0;
	int divisor = 1;
	int remainder = 0;
	int i = 0;

	scanf("%d %d %d", &side[0], &side[1], &side[2]);
	
	max = side[0];
	min = side[0];
	for (i = 1; i <= 2; i++)
	{
		if (max < side[i])
		{
			max = side[i];
		}
		if (min > side[i])
		{
			min = side[i];
		}
	}

	dividend = max;
	divisor = min;
	while (remainder = dividend % divisor)
	{
		dividend = divisor;
		divisor = remainder;
	}

	printf("%d/%d", min/divisor, max/divisor);

	return 0;
}

struct S
{
	char a;
};

int main1()
{
	/*struct S ch = { 0 };
	struct S* pa = &ch;
	printf("%p\n", pa);
	(pa++)->a = 'b';
	printf("%p\n", pa);
	(*pa)->a = 'b';*/

	int a = 1;
	int b = a++ + a;
	printf("%d\n", b);

	return 0;
}